var array = argument0;
var height = array_height_2d(array);
var width = array_length_2d(array, 0);

var maxLength = 1;
for (var iii = 0; iii < height; iii++)
{
    for (var jjj = 0; jjj < width; jjj++)
    {
        var length = string_length(string(array[iii, jjj]));
        if(length > maxLength)
        {
            maxLength = length;
        }
    }
}


for (var iii = 0; iii < height; iii++)
{
    var line = "";
    for (var jjj = 0; jjj < width; jjj++)
    {
        var character = string(array[iii, jjj]);
        var length = string_length(character);
        while(length < maxLength)
        {
            character += " ";
            length++;
        }
        
        line = line + string(character) + " ";
    }
    //Console.WriteLine();
    show_debug_message(line);
}
//Console.WriteLine();
show_debug_message("");